<div class="appraise">


    <div class="maintitle">当前位置：
        <span>订单评价</span>
    </div>

    {{#each user.appraise.info.goods_info}}
    <div class="goodsitem">
        <div class="goodsinfo">
            <div class="item img">
                <img bind-src="{{goods.preview_img_url}}?imageView/1/w/130" class="goodsimg">
            </div>
            <div class="item name">
                <div>
                    <a class="name" bind-href="goods-details.html?id={{goods._id}}" target="_blank">{{goods.goods_name}}</a>
                </div>
                <div>价格：
                    <span class="price">￥{{goods.price+"/"+goods.unit}}</span>
                    购买数量：{{num+goods.unit}}
                </div>
            </div>
        </div>
        <div class="appraiseinfo">
            {{#if $Top.user.appraise.info.state==$Top.config.ACH_STATE.ol交易完成||$Top.user.appraise.info.state==$Top.config.ACH_STATE.交易完成}}
            <div>输入评分（0~10）：
                <input maxlength="3" max="10" min="0" class="star" type="num" bind-input="{{'_eval_star_num'}}" bind-value="{{_eval_star_num}}" event-blur="{{'$Top.$Event.eval.checkStar'}}" />
            </div>
            <div>填写评价（150字以内）：</div>
            <textarea event-blur="{{'$Event.checkText'}}" maxlength="150" bind-input="{{'_eval_content'}}" bind-value="{{_eval_content}}"></textarea>
            {{#else}}
            <div>评分（0~10）： {{eval.star_num}}分
            </div>
            <div>评价内容：{{eval.comment.content}}
            </div>
            <div>评价时间： {{#Time eval.comment.create_time,"YYYY-MM-DD HH:mm:ss"}}
            </div>
            {{/if}}
        </div>
    </div>
    {{/each}} {{#if user.appraise.info.state==config.ACH_STATE.ol交易完成||user.appraise.info.state==config.ACH_STATE.交易完成}}
    <button event-click="{{'$Event.eval.submitEval'}}">提交评价</button>
    {{/if}}

</div>
